﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000B4 RID: 180
	internal class UInt16UInt16 : IUInt16Decoder
	{
		// Token: 0x060002C9 RID: 713 RVA: 0x0000BA6F File Offset: 0x00009E6F
		private UInt16UInt16()
		{
		}

		// Token: 0x060002CA RID: 714 RVA: 0x0000BA77 File Offset: 0x00009E77
		public ushort Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 3;
			return (ushort)((int)bytes[offset + 1] << 8 | (int)bytes[offset + 2]);
		}

		// Token: 0x040000D4 RID: 212
		internal static readonly IUInt16Decoder Instance = new UInt16UInt16();
	}
}
